package com.boarsoft.boar.demo.tenant.biz;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.boarsoft.boar.demo.tenant.entity.PocPost;
import com.boarsoft.hibernate.biz.SimpleBizImpl;

@Component
public class PocPostBizImpl extends SimpleBizImpl implements PocPostBiz {

	@Override
	@Transactional
	public boolean add(PocPost o) {
		dao.save(o);
		return true;
	}

	@Override
	@Transactional
	public boolean delete(int id) {
		return dao.delete(id);
	}

	@Override
	@Transactional(readOnly = true)
	public PocPost get(int id) {
		return dao.get(PocPost.class, id);
	}
}
